<template>
	<view>
		<!-- 提交成功页面 -->
		<view class="u-rela">
			<view class="u-abso bg" style="height: 250rpx;"></view>
			<view class="u-rela wrap">
				<view class="gold-card">
					<gold-card :data="data"></gold-card>
				</view>
			</view>	
		</view>
		
		<view class="footer-btn u-flex safe-area-inset-bottom">
			<view class="num1" @click="jump('/pages/chat/detail?id=' + data.id)">在线咨询</view>
			<view class="num3" @click="callPhone(data.phone)">电话咨询</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				data:''
			}
		},
		methods: {
			callPhone(phone){
				uni.makePhoneCall({
					phoneNumber:phone
				})
			},
		},
		onLoad({data}) {
			this.data = JSON.parse(decodeURIComponent(data))
		}
	}
</script>

<style lang="scss">
	.bg{width: 100%;background-color: #302e31;border-radius: 0 0 50rpx 50rpx;}
	.wrap{
		padding-top: 50rpx;
		.tips{color: #fff;text-align: center;font-size: 32rpx;font-weight: bold;padding-top: 20rpx;
			view{padding-top: 20rpx;}
		}
	}
	
	.footer-btn{
		background-color: #f4f4f4;height: 150rpx;justify-content: space-between;position: fixed;bottom: 0;left: 0;width: 100%;box-sizing: content-box;
		view{width: 300rpx;height: 80rpx;text-align: center;color: #fff;border-radius: 8rpx;line-height: 80rpx;font-weight: bold;font-size: 32rpx;}
		.num1{background-color: #ff3737;margin-left: 40rpx;}
		.num3{background-color: #1480f9;margin-right: 40rpx;}
	}
</style>
